package com.siwei.mes.entity.sync.erp.dto;

import com.siwei.mes.common.validator.bus.SyncGroup;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * erp接口入参
 *
 * @Description: erp接口入参
 * @Version: 1.0
 * @author: mlchen
 * @date: 2024/8/13 20:23
 */
@Data
public class ErpCustomerDto {
    /**
     * ERP唯一标识
     */
    @ApiModelProperty(value = "ERP唯一标识", name = "erpId")
    @NotNull(groups = {SyncGroup.class}, message = "ERP客户唯一标识为空")
    private Integer erpId;
    /**
     * 客户编号
     */
    @ApiModelProperty(value = "客户编号", name = "customerNo")
    @NotBlank(groups = {SyncGroup.class}, message = "客户编号为空")
    private String customerNo;
    /**
     * 客户名称
     */
    @ApiModelProperty(value = "客户名称", name = "customerName")
    @NotBlank(groups = {SyncGroup.class}, message = "客户名称为空")
    private String customerName;
}
